package com.ischoolbar.programmer.service.admin;

import com.ischoolbar.programmer.entity.admin.Authority;

import java.util.List;

public interface IAuthorityService {
    /*
     * 编辑功能:
     * 1. 先删除原有信息
     * 2. 添加新的信息
     * */
    public abstract void add(Authority authority);

    public abstract void delete(Integer id);
    public abstract List<Authority> findAllAuthority();

    public abstract List<Authority> findAuthorityByRoleId(Integer roleId);
}
